projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3d611f
)
inspector: Avoid criticals in the css editro
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 20 Dec 2015 19:40:49 +0000
(14:40 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 20 Dec 2015 19:43:14 +0000
(14:43 -0500)
We can't keep text iters around after text buffer has been
changed. Just clear the list errors when the buffer changes
before we've passed it again.
gtk/inspector/css-editor.c
patch
|
blob
|
history
diff --git
a/gtk/inspector/css-editor.c
b/gtk/inspector/css-editor.c
index d5547841f03cfad79ce03fb9bc948d50b8f39acc..bdfe762edd626c774e0796708a3a485915c6173d 100644
(file)
--- a/
gtk/inspector/css-editor.c
+++ b/
gtk/inspector/css-editor.c
@@
-308,6
+308,9
@@
text_changed (GtkTextBuffer *buffer,
g_source_remove (ce->priv->timeout);
ce->priv->timeout = g_timeout_add (100, update_timeout, ce);
+
+ g_list_free_full (ce->priv->errors, css_error_free);
+ ce->priv->errors = NULL;
}
static void